#pragma once
#include "../LinkedList/LinkedList.h"
template<class T>
class Stack :
	public LinkedList<T>
{
public:

	Stack()
	{
	}

	~Stack()
	{
	}

	void push_stack(T data)
	{
		add_at_head(data);
	}

	T pop_stack()
	{
		T temp;
		temp = head->data;
		remove(head);
		return temp;
	}
};

